{% extends "../../templates/global_nav.html" %}

{% block content %}
<h4> Here is a list of sales in the database: </h4> 

<div>

<table class='cbv_index'>

<tr>
<th> Edit Link </th>
<th> Database id </th>

</tr>

{% for sale in sales_list %}
  <tr class="{% cycle odd_row,even_row %}">
   <td> 
   <a href = "{% url wjContact.sales.views.sales_edit main_object_id=sale.id %}">  
     {{ sale }}    
   </a> 
   </td>  
   <td> {{ sale.id }} </td>
   
      
  </tr>
{% endfor %}
</table>
</div>
{% endblock content %}